package Zshi;

public class Merchant {
    /**
     * 税务局
     */
    public String taxbureau;    //税务局
    /**
     * 商户
     */
    public String Merchant;
    /**
     * 税款
     */
    public String Taxes;
    /**
     * 人民币
     */
    public String RMB;

    public Merchant(String taxbureau){
        this( taxbureau,"商户","税款","人民币");

    }
    public Merchant(String taxbureau,String merchant,String taxes,String RMB){   //用this构架调用
        this.taxbureau=taxbureau;
        this.Merchant=merchant;
        this.Taxes=taxes;
        this.RMB=RMB;
    }
    public void intro(){
        System.out.println(taxbureau+":你好，请问你办理什么业务"+Merchant+":我来交税,这是我的"+Taxes+"一共"+RMB+"元");


    }

    public void yonghu(Merchantxitong merchantxitong){
        System.out.println(this.taxbureau+":你好，请问你办理什么业务"+ Merchant+":我来交税，这是我的"+Taxes+"一共"+RMB+"元，好的,已经办理"+
                merchantxitong.name);


    }
    public static void main(String[]args){
        //产生对象
        Merchant merchant =new Merchant("税务局","商户","税款","1000"); //产生对象 类名开头
        Merchantxitong merchantxitong=new Merchantxitong("成功");


        System.out.println(merchant);

        merchant.yonghu(merchantxitong);

        merchant.intro();


    }






}
